package com.sawen.houserent.service;

import com.sawen.houserent.bean.Homeinfo;
import com.sawen.houserent.mapper.HomeinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeinfoServiceImpl implements HomeinfoService {
    @Autowired
    private HomeinfoMapper homeinfoMapper;
    @Override
    public List<Homeinfo> getHomeinfo() {
        List<Homeinfo> homeinfoList=homeinfoMapper.getHomeinfo();
        return homeinfoList;
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
        homeinfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public void updateByPrimaryKey(Homeinfo homeinfo) {
        homeinfoMapper.updateByPrimaryKey(homeinfo);
    }

    @Override
    public void insertSelective(Homeinfo homeinfo) {
        homeinfoMapper.insertSelective(homeinfo);
    }
}
